package com.xxrl.shop.repository;

import com.xxrl.shop.domain.SysPermission;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author mis
 */
public interface SysPermissionRepository extends MongoRepository<SysPermission,String> {

    /**
     * 根据路径查询权限
     * @param path 路径
     * @return 权限
     */
    List<SysPermission> getSysPermissionsByPath(String path);

}
